﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Xmart.Win.Demo
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            var cxt = Spring.Context.Support.ContextRegistry.GetContext();

            var service = cxt.GetObject<Xmart.Service.IServiceAction>("webService");

            var sr = service.ExecuteQuery("modelAction", "Load", typeof(Xmart.Models.Demo.FsInfo).FullName, "nribdbi");

            var action = cxt.GetObject<Xmart.Action.IAction>();

            var ar = action.ExecuteQuery("Load", typeof(Xmart.Models.Demo.FsInfo), "nribdbi");

            var json = Action.ActionResult.FromString(ar.ToString());

            var data = json.Data;


        }
    }
}
